Skip to content

Fix button accessibility#2719

Merged
robertbrignull merged 8 commits intomainfrom
koesie10/fix-button-accessibility
Aug 21, 2023
Merged

Fix button accessibility#2719
robertbrignull merged 8 commits intomainfrom
koesie10/fix-button-accessibility

Conversation

@koesie10
Copy link
Copy Markdown
Member

This replaces all <a href="#" onClick={...}>...</a> by <button> element styled as a link using the TextButton component. This improves accessibility. There should be no changes in behavior or UI.

Checklist

  • CHANGELOG.md has been updated to incorporate all user visible changes made by this pull request.
  • Issues have been created for any UI or other user-facing changes made by this pull request.
  • [Maintainers only] If this pull request makes user-facing changes that require documentation changes, open a corresponding docs pull request in the github/codeql repo and add the ready-for-doc-review label there.

@koesie10 koesie10 marked this pull request as ready for review August 17, 2023 07:26
@koesie10 koesie10 requested a review from a team as a code owner August 17, 2023 07:26
Copy link
Copy Markdown
Contributor

@robertbrignull robertbrignull left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I didn't know we had TestButton. That's cool, and I agree that's the right component to use here.

I think I've tested all the UI elements that have changed, and I found one that was a bit different than it was before, but everything else seems good.

Comment thread extensions/ql-vscode/src/view/results/ResultTablesHeader.tsx
Comment thread extensions/ql-vscode/src/view/common/TextButton.tsx
@robertbrignull
Copy link
Copy Markdown
Contributor

Fixed the merge conflicts with #2726

Copy link
Copy Markdown
Contributor

@robertbrignull robertbrignull left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@robertbrignull robertbrignull merged commit e5ab111 into main Aug 21, 2023
@robertbrignull robertbrignull deleted the koesie10/fix-button-accessibility branch August 21, 2023 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants